<?php
class Info extends AppModel {
    var $name = 'Info';
    var $useTable = 'infos';
	
		var $belongsTo = array(
        'User' => array(
            'className' => 'User',
            'foreignKey' => 'usuario_id',
            'conditions' => '',
            'fields' => 'id, cpf, nome',
            'order' => ''
        ));
		var $hasMany = array(
		'Profi' => array(
            'className' => 'Profi',
            'foreignKey' => 'info_id',
            'conditions' => '',
            'fields' => 'id, info_id, usuario_id, atual, salario, ultimo_cargo, data_admissao, data_demissao, motivo_saida',
            'order' => ''
        )
		);
}
?>
